#include <bits/stdc++.h>
// 2025/01/18
// tag:
// Author: Zhang Muen
using namespace std;

int a[502], b[502], l1, l2;

signed main()
{
    string x, y;
    cin >> x >> y;
    l1 = x.length(), l2 = y.length();
    for (int i = l1 - 1; i >= 0; i--)
        a[502 - l1 + i] = x[i] - '0';
    for (int i = l2 - 1; i >= 0; i--)
        b[502 - l2 + i] = y[i] - '0';
    for (int i = 501; i >= 502 - max(l1, l2); i--)
        b[i - 1] += (b[i] + a[i]) / 10, b[i] = (b[i] + a[i]) % 10;
    if (b[501 - max(l1, l2)])
        cout << b[501 - max(l1, l2)];
    for (int i = 502 - max(l1, l2); i <= 501; i++)
        cout << b[i];
    return 0;
}